import i18n from '@/lang'
import moment from 'moment'
// 当前分组配置表头
export const subscriptionTbColumns = [
  {
    title: '激活标识码',
    dataIndex: 'orderNum',
    scopedSlots: { customRender: 'orderNum' },
    width: 200
  },
  {
    title: 'VIN',
    dataIndex: 'vin',
    scopedSlots: { customRender: 'vin' },
    width: 200
  },
  {
    title: i18n.t('modelCode'),
    dataIndex: 'modelCode',
    scopedSlots: { customRender: 'modelCode' },
    width: 140
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    width: 140
  },
  {
    title: i18n.t('stereotype'),
    dataIndex: 'trimLevel',
    scopedSlots: { customRender: 'stereotype' },
    width: 140
  },
  {
    title: i18n.t('serviceCode'),
    dataIndex: 'serviceCode',
    scopedSlots: { customRender: 'serviceCode' },
    width: 120
  },
  {
    title: i18n.t('serviceName'),
    dataIndex: 'serviceName',
    scopedSlots: { customRender: 'serviceName' },
    width: 120
  },
  {
    title: '服务开始日期',
    dataIndex: 'activateTime',
    scopedSlots: { customRender: 'activateTime' },
    sorter: true,
    // sortOrder: 'descend',
    // sortDirections: ['ascend', 'descend'],
    width: 140
  },
  {
    title: i18n.t('serviceExpireDate'),
    dataIndex: 'expiration',
    scopedSlots: { customRender: 'serviceExpireDate' },
    width: 140,
  },
  // {
  //   title: '激活发起时间',
  //   dataIndex: 'activateStartTime',
  //   scopedSlots: { customRender: 'activateStartTime' },
  //   width: 200
  // },
  // {
  //   title: i18n.t('subscriptionState'),
  //   dataIndex: 'serviceStatus',
  //   scopedSlots: { customRender: 'subscriptionState' },
  //   width: 140
  // },
  {
    title: i18n.t('activeState'),
    dataIndex: 'serviceStatus',
    scopedSlots: { customRender: 'serviceStatus' },
    width: 140
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    scopedSlots: { customRender: 'operation' },
    width: 100,
    fixed: 'right'
  }
]
export const subscriptionDetailTbColumns = [
  {
    title: '激活流水号',
    dataIndex: 'operateSn',
    scopedSlots: { customRender: 'operateSn' },
    width: 200
  },
//   {
//   title: i18n.t('orderNum'),
//   dataIndex: 'orderNum',
//   scopedSlots: { customRender: 'orderNum' },
//   width: 200
// },
// {
//   title: i18n.t('serviceExpireDate'),
//   dataIndex: 'expiration',
//   scopedSlots: { customRender: 'serviceExpireDate' },
//   width: 150,
//   sorter: true
// },
  {
  title: i18n.t('operateType'),
  dataIndex: 'operateType',
  scopedSlots: { customRender: 'operateType' },
  width: 150
}, {
  title: i18n.t('激活发起时间'),
  dataIndex: 'operateTime',
  scopedSlots: { customRender: 'operationTime' },
  width: 180,
}, {
  title: i18n.t('activeState'),
  dataIndex: 'operateStatus',
  scopedSlots: { customRender: 'operateStatus' },
  width: 240
}, {
  title: i18n.t('operation'),
  dataIndex: 'operation',
  scopedSlots: { customRender: 'operation' },
  width: 120
} ]
